﻿package com.bizmlib.utils.visuallogger
{
	import flash.display.MovieClip;
	
	
	public class VisualLoggerPane extends MovieClip
	{
		public var oneSecondStep:Number;
		
		
		public function VisualLoggerPane()
		{
			mouseEnabled = false;
			mouseChildren = false;
		}
		
		
		public function drawEntry(entry:VisualLoggerEntry):void
		{
			this.graphics.beginFill(entry.color, 1);
			this.graphics.drawRect(entry.value - .5, oneSecondStep*entry.milliseconds/1000 - .5, 1, 1);
			this.graphics.endFill();
		}
	}
}